import Vue from 'vue'
import Router from 'vue-router'



Vue.use(Router)

export default new Router({

  routes: [
  /*
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    }
   */{
      path: '/login',
      name: 'login',
      component: ()=>import("../views/login")//按需加载
    },
    {
      path: '/index',
      name: 'index',
      component: ()=>import("../views/index")//按需加载
    }
  ]
})
